#ifndef AS_HTTP_HTTPADAPTER
#define AS_HTTP_HTTPADAPTER

#include <QObject>
#include <As/Http/HttpRequest.h>
#include <As/Http/HttpResponse.h>

namespace As {

    class AbstractHttpAdapter : public QObject {
	Q_OBJECT;
    public:
	AbstractHttpAdapter(QObject *parent = 0);

    signals:
        void request(As::HttpRequest req);

    public slots:
	virtual void listen() = 0;
	virtual void stopListen() = 0;
        virtual void response(As::HttpResponse resp) = 0;
    };
}


#endif // ! AS_HTTP_HTTPADAPTER
